package com.shop.cereshop.app.domain.shop;

import com.shop.cereshop.commons.domain.common.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description: 查询店铺列表参数
 * @author zdd
 * @date 2025/10/22 16:29
 * @version 1.0
 */
@ApiModel(value = "QueryShopDTO", description = "查询店铺列表参数")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryShopDTO extends PageParam implements Serializable {

    @ApiModelProperty(value = "店铺类型：1-同城服务 2-线上购 3-同城配送")
    private Integer shopType;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "排序类型：1-最新上架 2-销量优先 3-好评优先")
    private Integer sortType;

    @ApiModelProperty(value = "距离（米）")
    private Double distance;

//    @ApiModelProperty(value = "用户点位(经度,纬度，如 116.397,39.908)")
//    private String location;

    @ApiModelProperty(value = "用户点位(经度，如 116.397)")
    private Double longitude;

    @ApiModelProperty(value = "用户点位(纬度，如 39.908)")
    private Double latitude;

    private String locationRegexp;


    private Long buyerUserId;
}
